package com.bite.forum.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data//简化getter setter
public class Article {
    private Long id;

    private Long boardId;

    private Long userId;

    private String title;

    //访问数
    private Integer visitCount;

    //回复数
    private Integer replyCount;

    //点赞数
    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    private String content;

    @ApiModelProperty("是否作者")
    private  Boolean Own;

    //关联对象 —— 作者
    private User user;

    //关联对象 —— 板块
    private Board board;
}